# -*- coding: utf-8 -*-
import scrapy
from DemoBaidu.items import DemobaiduItem

class SpiderbaiduSpider(scrapy.Spider):
    name = 'SpiderBaidu'
    allowed_domains = ['www.baidu.com']
    start_urls = ['https://www.baidu.com']

    def parse(self, response):
        print('1111111111111')
        html = '';
        for x in response.xpath('//html').extract():
            html = html + x;
        items = []
        item = DemobaiduItem()
        item['html'] = html;
        items.append(item)
        return item;

